class CreateMoviesTags < ActiveRecord::Migration
    def self.up
        create_table :movies_tags, :id => false do |t|
            t.column :movie_id, :integer
            t.column :tag_id, :integer
        end

        movie = Movie.find(1)
        movie.tags<<Tag.find(1)
        movie.save
    end

    def self.down
        drop_table :movies_tags
    end
end
